<!--
	This file is part of ELCube.
	ELCube is free software: you can redistribute it and/or modify
	it under the terms of the GNU Affero General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	ELCube is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Affero General Public License for more details.
	You should have received a copy of the GNU Affero General Public License
	along with ELCube.  If not, see <https://www.gnu.org/licenses/>.
-->
<template>
    <nk-form ref="form" :col="2" :edit="editMode">
        <nk-form-item term="单据类型" >
            <span class="nk-text-ellipsis">{{doc.def && doc.def.docType}} | {{doc.def && doc.def.docName}}</span>
        </nk-form-item>
        <nk-form-item term="单据编号">
            <span v-if="doc.docNumber">{{doc.docNumber}}</span>
            <span v-else style="color: rgba(0, 0, 0, 0.45);">&lt;未编号&gt;</span>
        </nk-form-item>
        <nk-form-item title="凭证类别">
            {{doc.data['NkCardAccountingVoucher'].voucherKind}}
        </nk-form-item>
        <nk-form-item title="记账日期">
            {{doc.data['NkCardAccountingVoucher'].accountDate}}
        </nk-form-item>

        <nk-form-item title="会计年度">
            {{doc.data['NkCardAccountingVoucher'].accountYear}}
        </nk-form-item>
        <nk-form-item title="会计期间">
            {{doc.data['NkCardAccountingVoucher'].accountPeriod}}
        </nk-form-item>
        <nk-form-item term="创建时间">{{doc.createdTime | nkDatetimeFriendly}}</nk-form-item>
        <nk-form-item term="更新时间">{{doc.updatedTime | nkDatetimeFriendly}}</nk-form-item>
    </nk-form>
</template>

<script>
    import Mixin from "Mixin";

    export default {
        mixins:[new Mixin()],
        data(){
            return {
            }
        },
        created() {
        },
        methods:{
        }
    }
</script>